import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from "./store"

import ElementUI from 'element-ui';
import FastClick from "fastclick"
import VueLazyLoad from "vue-lazyload"

import toast from "components/common/toast"

Vue.config.productionTip = false

//添加事件总线对象
Vue.prototype.$bus = new Vue();

//安装toast插件
Vue.use(toast)

//解决移动端300ms延时
FastClick.attach(document.body)

//图片懒加载
Vue.use(VueLazyLoad, {
  loading: require("./assets/img/common/placeholder.png")
})

//安装element组件
Vue.use(ElementUI);

new Vue({
  render: h => h(App),
  router,
  store
}).$mount('#app')
